package com.hx.reporter.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 群组聊天记录对象 talk_group_record_chat
 * 
 * @author ${author}
 * @date 2023-05-28
 */
public class GroupRecordChat extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 群聊天记录id */
    private Integer groupChatRecordId;

    /** 群组id */
    @Excel(name = "群组id")
    private String groupId;

    /** 发送者id */
    @Excel(name = "发送者id")
    private String senderId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 是否一睹(1:已读 0:未读) */
    @Excel(name = "是否一睹(1:已读 0:未读)")
    private Integer isRead;

    /** 0,表示内容，1表示图片，2表示文件 */
    @Excel(name = "0,表示内容，1表示图片，2表示文件")
    private Integer sendType;

    public void setGroupChatRecordId(Integer groupChatRecordId) 
    {
        this.groupChatRecordId = groupChatRecordId;
    }

    public Integer getGroupChatRecordId() 
    {
        return groupChatRecordId;
    }
    public void setGroupId(String groupId) 
    {
        this.groupId = groupId;
    }

    public String getGroupId() 
    {
        return groupId;
    }
    public void setSenderId(String senderId) 
    {
        this.senderId = senderId;
    }

    public String getSenderId() 
    {
        return senderId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    public void setIsRead(Integer isRead) 
    {
        this.isRead = isRead;
    }

    public Integer getIsRead() 
    {
        return isRead;
    }
    public void setSendType(Integer sendType) 
    {
        this.sendType = sendType;
    }

    public Integer getSendType() 
    {
        return sendType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("groupChatRecordId", getGroupChatRecordId())
            .append("groupId", getGroupId())
            .append("senderId", getSenderId())
            .append("content", getContent())
            .append("sendTime", getSendTime())
            .append("isRead", getIsRead())
            .append("sendType", getSendType())
            .toString();
    }
}
